<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0078)http://static.ex.ibw.sdo.com/2.1.0.0/checklogin.html?plm=20101201&slm=20101201 -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<title>登陆状态检查</title>
	</head>
	<body>
		<iframe src="about:break" id="checklogin" frameborder="0" scrolling="no"></iframe>
		<script type="text/javascript">
			document.domain = 'sdo.com';
			var timer,loop=false,loginURL = 'http://ex.ibw.sdo.com/2.0.0.0/index.php?c=login&m=widgetUserLogin&type=updateCasStatus';
			function getCookie(n){ var r; return (r = new RegExp('(?:; )?' + n + '=([^;]*);?', 'g').exec(document.cookie)) ? decodeURIComponent(r[1]) : null; }
			function checkCASLogin(){
				clearTimeout(timer),timer = null;
				if(getCookie('CAS_LOGIN_STATE'))
				{
					var pt = getCookie('IBW_PtAccount') , isBindingMobile;
					if(pt)
					{
                         //是否绑定手机.
                        isBindingMobile = getCookie('login_need_mobile_intro') === '1';
						__IBW__.Domain.call({'fn' : 'notifyLoginStatus', 'params' : [true, pt, isBindingMobile]});
					}else{
						if(loop)
						{
							loop = false;
							return __IBW__.Domain.call({'fn' : 'notifyLoginStatus', 'params' : [false, '']});
						}
						loop = true;
						timer = setTimeout(function(){
							__IBW__.Domain.call({'fn' : 'notifyLoginStatus', 'params' : [false, '']});
						},8000);
						document.getElementById('checklogin').src = loginURL;
					}
				}else{
					__IBW__.Domain.call({'fn' : 'notifyLoginStatus', 'params' : [false, '']});
				}
			}
			function __IBWREADY__(){
				__IBW__.Domain.init('__checklogin__');
				__IBW__.Domain.regMethods('checkCASLogin',checkCASLogin);
				checkCASLogin();
			}
		</script>
		<script type="text/javascript" src="main.js" charset="utf-8"></script>
	
</body></html>